package org.smr.ministore.dao;


import org.apache.ibatis.annotations.Param;
import org.smr.ministore.entities.Brand;
import org.apache.ibatis.annotations.Mapper;
import org.blade.dao.base.BaseMapper;
import org.blade.dao.base.PageQueryMapper;


/**
 *
 **/
@Mapper
public interface BrandMapper extends BaseMapper<Long, Brand>, PageQueryMapper<Long, Brand> {

    /**
     * 逻辑删除
     *
     * @param id Long
     * @return 影响记录行数
     */
    int deleteByIdLogical(@Param("id") Long id);

    /**
     * 根据业务主键查询
     *
     * @param brand Brand 品牌
     * @return Brand
     */
    Brand selectByPrimaryKey(@Param("entity") Brand brand);
}